package com.talent.mapper;

import com.talent.pojo.entity.OperationLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 操作日志Mapper
 */
@Mapper
public interface OperationLogMapper {

    /**
     * 新增操作日志
     */
    void insert(OperationLog operationLog);

    /**
     * 分页查询操作日志
     */
    List<OperationLog> pageQuery(@Param("username") String username,
                                 @Param("phone") String phone,
                                 @Param("action") String action,
                                 @Param("startDate") LocalDateTime startDate,
                                 @Param("endDate") LocalDateTime endDate);
}
